.doct h2{
    font-family: "Story Script", sans-serif;
    text-align: center;
    margin-top: 10px;
    font-size: 28px;
    color: #2d2b9b;
}
.profile-card{
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px auto;
    width: 80%;
}
.profile-card .profile-image img{
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    filter: brightness(0.9) contrast(1.1);
    transform: scale(1);
}

.profile-card .profile-image img:hover{
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 10;
    position: relative;
}

.profile-card .profile-image img:active{
    transform: scale(0.98) rotate(-1deg);
    transition: all 0.1s ease;
}
.profile-card .profile-content h2{
    font-size: 24px;
    color: #fc2c16;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: translateX(0);
}
.profile-card .profile-content p{
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    transition: all 0.4s ease;
    opacity: 0.7;
    transform: translateY(10px);
}

/* Initial load animation */
.profile-card .profile-content h2,
.profile-card .profile-content p{
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Animation effects when hovering over the image */
.profile-card .profile-image:hover ~ .profile-content h2{
    opacity: 1;
    transform: translateX(10px);
    color: #d61a0a;
}

.profile-card .profile-image:hover ~ .profile-content p{
    opacity: 1;
    transform: translateY(0);
    color: #333;
}
.profile-card:hover{
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
    background-color: aliceblue;
        /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */

}
.profile-card:hover .profile-content p{
    color: black;
}
@media (max-width: 768px){
    .profile-card{
        flex-direction: column;
        text-align: center;
    }
    .profile-card .profile-image img{
        margin: 0 0 15px 0;
        width: 100%;
        max-width: 300px;
    }
}
@media (max-width: 480px){
    .profile-card{
        width: 90%;
        padding: 15px;
    }
    .profile-card .profile-content h2{
        font-size: 20px;
    }
    .profile-card .profile-content p{
        font-size: 16px;
    }
}

